<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title><?php echo $title ?></title>
        <meta name="description" content="<?php echo $description; ?>" />
        <meta http-equiv="keywords" content="<?php echo $keywords; ?>" />
        <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
        <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <link rel="stylesheet/less" href="/files/less/bootstrap.less" media="all" />
        <script src="/files/js/less.min.js"></script>
        <link rel="stylesheet" type="text/css" media="screen" href="/files/css/main.css" />
    </head>
    <body>

        <div class="topbar">
            <div class="fill">
                <div class="container">
                    <a class="brand" href="/">Home</a>
                    <?php Menu::print_menu(0, 0); ?>
                    <!--<ul class="nav">
                        <li class="active"><a href="#">Home</a></li>
                        <li><a href="#about">About</a></li>
                        <li><a href="#contact">Contact</a></li>
                    </ul>-->
                    <div class="pull-right">
                        <ul class="nav">
                        <?php
                        $route = Request::initial()->route();
                        $params = Request::initial()->param();

                        foreach ($languages as $lang => $val) {
                            if ($lang == $language) continue;
                            $link = URL::site($route->uri(array_merge($params, array('language' => $lang))));
                            echo "<li><a href=\"{$link}\">{$lang}</a></li>";
                        }
                        ?>
                        </ul>
                    </div>
                    <!--<form action="" class="pull-right">
                        <input class="input-small" type="text" placeholder="Username">
                        <input class="input-small" type="password" placeholder="Password">
                        <button class="btn" type="submit">Sign in</button>
                    </form>-->
                </div>
            </div>
        </div>

        <div class="container">

            <div class="content">
                <div class="page-header">
                    <h1><?php echo $page_title; ?></h1>
                </div>
                <?php echo $page_content;  ?>
            </div>

            <footer>
                <p>&copy; Company 2011</p>
            </footer>
            
        </div>
    </body>
</html>